From: Philip Withnall Date: Wed, 7 Jun 2017 14:41:17 +0000 (+0100) Subject: lib/fetcher: Add cleanup function for OstreeFetcher X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~36^2~34 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4418ab7fa96ae45d330697b697376ae121c09b0b;p=ostree.git lib/fetcher: Add cleanup function for OstreeFetcher This is only used internally (the header is not public), so it doesn’t have to go in ostree-autocleanups.h. It will be used in some following commits. Signed-off-by: Philip Withnall Closes: #911 Approved by: cgwalters --- diff --git a/src/libostree/ostree-fetcher.h b/src/libostree/ostree-fetcher.h index 16cf3d7d..8ec5f209 100644 --- a/src/libostree/ostree-fetcher.h +++ b/src/libostree/ostree-fetcher.h @@ -46,6 +46,8 @@ struct OstreeFetcherClass GObjectClass parent_class; }; +G_DEFINE_AUTOPTR_CLEANUP_FUNC(OstreeFetcher, g_object_unref) + typedef enum { OSTREE_FETCHER_FLAGS_NONE = 0, OSTREE_FETCHER_FLAGS_TLS_PERMISSIVE = (1 << 0),